import AsyncStorage from '@react-native-community/async-storage';

export let setUserInfo = async (data) => {
  await AsyncStorage.setItem('userInfo', JSON.stringify(data))
};

export let getUserInfo= async () => {
  let res = await AsyncStorage.getItem('userInfo');
  return JSON.parse(res);
};

export let removeInfo = async () => {
  await AsyncStorage.removeItem('userInfo')
};